#define _CRT_SECURE_NO_WARNINGS 1

#include"sort.h"

void TestSelectSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	SelectSort(a, len);

	PrintArray(a, len);
}

void TestHeapSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	HeapSort(a, len);

	PrintArray(a, len);
}

void TestBubbleSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	BubbleSort(a, len);

	PrintArray(a, len);
}

void TestQuickSort()
{
	int a[] = { 6,1,2,7,9,3,4,5,10,8 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	QuickSort(a, 0, len - 1);

	PrintArray(a, len);
}

int main()
{
	//TestBubbleSort();
	TestQuickSort();

	return 0;
}



